You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Statistics.GOFLillieTest Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.GOFLillieTest Method

The Lilliefors GOF test to a normal distribution.

Syntax
C#
Visual Basic
public static double GOFLillieTest([In] TVec Data, out THypothesisResult hRes, out double Signif, double Alpha, double MCTol2);
Parameters 
Description 
[In] TVec Data 
Vector, storing sample values to-be-tested. 
out THypothesisResult hRes 
Returns the result of the null hypothesis (default assumption is that data comes from normal distribution). 
out double Signif 
(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true. 
double Alpha 
Defines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected. 
double MCTol2 
Defines default tolerance for Monte Carlo algorithm (0,0001). 

KS test statistics value.

Performs the Lilliefors goodnes of fit test to a normal distribution with unknown parameters mu and sigma. 

 

The test proceeds as follows:

  1. First estimate the population mean and population variance based on the data.
  2. Then find the maximum discrepancy between the empirical distribution function and the cumulative distribution function (CDF) of the normal distribution with the estimated mean and estimated variance. Just as in the Kolmogorov-Smirnov test, this will be the test statistic.
  3. Finally, we confront the question of whether the maximum discrepancy is large enough to be statistically significant, thus requiring rejection of the null hypothesis. This is where this test becomes more complicated than the Kolmogorov-Smirnov test. Since the hypothesized CDF has been moved closer to the data by estimation based on those data, the maximum discrepancy has been made smaller than it would have been if the null hypothesis had singled out just one normal distribution. Thus we need the "null distribution" of the test statistic, i.e. its probability distribution assuming the null hypothesis is true. This is the Lilliefors distribution. To date, tables for this distribution have been computed only by Monte Carlo methods.

Note:  

The test is relatively weak and a large amount of data is typically required to reject the normality hypothesis. A more sensitive test is the Jarque-Bera test which is based on a combination of the estimates of skewness and kurtosis. The Jarque-Bera test is therefore highly attentive to outliers, which the Lilliefors is not.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!